home *** CD-ROM | disk | FTP | other *** search
-
-
-
- uuuusssseeeerrrrddddmmmmaaaa((((DDDD3333XXXX)))) uuuusssseeeerrrrddddmmmmaaaa((((DDDD3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- _uuuu_ssss_eeee_rrrr_dddd_mmmm_aaaa,_uuuu_nnnn_dddd_mmmm_aaaa - lock, unlock physical memory in user space
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _""""_ssss_yyyy_ssss_////_tttt_yyyy_pppp_eeee_ssss_...._hhhh_""""
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _""""_ssss_yyyy_ssss_////_bbbb_uuuu_ffff_...._hhhh_""""
-
- _uuuu_ssss_eeee_rrrr_dddd_mmmm_aaaa_((((_vvvv_oooo_iiii_dddd _****_u_s_r__v__a_d_d_r_,,,, _ssss_iiii_zzzz_eeee______tttt _n_u_m__b_y_t_e_s_,,,, _iiii_nnnn_tttt _r_w _vvvv_oooo_iiii_dddd _****_M_B_Z_))))_;;;;
-
- _uuuu_nnnn_dddd_mmmm_aaaa_((((_vvvv_oooo_iiii_dddd _****_u_s_r__v__a_d_d_r_,,,, _ssss_iiii_zzzz_eeee______tttt _n_u_m__b_y_t_e_s_,,,, _iiii_nnnn_tttt _r_w_))))_;;;;
-
- AAAArrrrgggguuuummmmeeeennnnttttssss
- _u_s_r__v__a_d_d_r
- User process address space.
-
- _n_u_m__b_y_t_e_s
- Number of bytes.
-
- _r_w If set to _B__R_E_A_D, then the memory space will be readable upon return
- from this call. If set to _B__W_R_I_T_E, the memory will be writable upon
- return.
-
- _M_B_Z must be set to 0.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _uuuu_ssss_eeee_rrrr_dddd_mmmm_aaaa prepares memory before a DMA operation into or from a user
- process' address space. It locks the physical pages associated with
- _n_u_m__b_y_t_e_s bytes of user virtual memory starting at location _u_s_r__v__a_d_d_r.
- If the _r_w flag is set to _BBBB______RRRR_EEEE_AAAA_DDDD, then the memory space will be readable
- upon return from this call. If, however, the flag is set to _BBBB______WWWW_RRRR_IIII_TTTT_EEEE, the
- memory will be writable upon return. _uuuu_ssss_eeee_rrrr_dddd_mmmm_aaaa also invalidates the data
- cache lines corresponding to the given address and count, if necessary.
-
- When the operation is complete, call _uuuu_nnnn_dddd_mmmm_aaaa to unlock these pages.
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEESSSS
- If _uuuu_ssss_eeee_rrrr_dddd_mmmm_aaaa is successful, it returns 0; otherwise, it returns an error
- number as follows:
-
- _EEEE_FFFF_AAAA_UUUU_LLLL_TTTT
- The user buffer was outside the allocated address space.
-
- _EEEE_AAAA_GGGG_AAAA_IIII_NNNN
- Total amount of system memory to lock user pages is temporarily
- insufficient.
-
- _EEEE_BBBB_UUUU_SSSS_YYYY
- There is not enough kernel memory available to map the user pages to
- kernel virtual memory.
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-